$(function(){
	$("tr:even").css({
		"background":"#eee"
	});
	$("td").css({
		"text-align":"center",
		"width":"200px"
	});
	
	$(".fenye:first").css({
		"margin-left":"180px"
	});
	$(".fenye").css({
		"display":"inline-block",
		"width":"20px",
		"height":"20px",
		"line-height":"20px",
		"text-align":"center",
		"border-radius":"50%",
		"background":"blue",
		"color":"white",
		"border":"1px solid #eee",
		"cursor":"pointer"
	});
	$(".fenye").unbind("click").bind("click",function(){
		var curr = $(this).text();
		$.ajax({
			url:"ShowAllServlet",
			type:"post",
			data:"curr="+curr,
			dataType:"html",
			async:true,
			success:function(result){
				$("#tab").html(result);
			}
		});
		
	});
});